        <script>
            function validate()
            {
                initValidate();
                commonValidate();
                // init
                $('contentSpan').innerHTML = "";
                for(var i = 0; i < 8; i ++)
                {
                    $('resultContent' + i + 'Span').innerHTML = "";
                } 
                $('resolutionSpan').innerHTML = "";
                $('resultSpan').innerHTML = "";
                try
                {
                    if(FCKeditorAPI.GetInstance('content').GetXHTML(true).length == 0)
                    {
                        inValidated();
                        $('contentSpan').innerHTML = "<font color='red'>必填</font>";
                    }
                    var resultChecked = false;
                    for(var i = 0; i < $('resultCount').value; i ++)
                    {
                        //alert(resultChecked + " : " + $("result" + i).checked);
                        resultChecked = resultChecked | $("result" + i).checked;
                    }
                    if(!resultChecked)
                    {
                        inValidated();
                        $('resultSpan').innerHTML = "<font color='red'>请指定</font>";
                    }
                }
                catch(e)
                {
                    //alert("校验失败：" + e);
                }
                $('submitButton').disabled = !isAllValidated();
            }
            function changeResultCount()
            {
                var resultCountValue = $('resultCount').value;
                for(var i = 1; i <= 8; i ++)
                {
                    if(i <= resultCountValue)
                    {
                        eval("$('fcktr" + i + "').style.display = '';");
                        eval("$('resultCom" + (i - 1) + "').style.display = '';");
                    }
                    else
                    {
                        // 隐藏 标题栏目
                        eval("$('fcktr" + i + "').style.display = 'none';");
                        // 隐藏 正确答案
                        eval("$('resultCom" + (i - 1) + "').style.display = 'none';");
                    }
                    // 隐藏答案内容
                    eval("$('fck" + i + "inst').style.display = 'none';");
                }
                changeFck($('fck0'));
            }

            function reset4SelectUpdate()
            {
                <%
                if(examQuestion != null)
                {
                    %>
                    initCommon();
                    $('resultCount').value = "<%= examQuestion.getResults().size()%>";
                    changeResultCount();
                    reset4Update();
                    <%                
                    for(int i = 0; i < rss.length; i ++)
                    {
                        Result rs = (Result)rss[i];
                        if(rs.isError())
                        {
                            %>$('result<%= i%>').checked = false;<%
                        }
                        else
                        {
                            %>$('result<%= i%>').checked = true;<%
                        }
                    }  
                }
                    %>
            }
        </script>
        <tr >
            <td class="detailTD21" align="right">
                答案个数
            </td>
            <td class="detailTD22" align="right">
                <select id="resultCount" name="resultCount" onchange="changeResultCount()">
                    <option value="4">4
                    <option value="5">5
                    <option value="6">6
                    <option value="7">7
                    <option value="8">8
                </select><span id="resultCountSpan"></span>
            </td>
            <td class="detailTD21" align="right">
                正确答案
            </td>
            <td class="detailTD22" align="right">
                <span id="resultCom0">A&nbsp;<INPUT TYPE="checkbox" id="result0" onclick="choise(this)"  name="result" value="0">&nbsp;&nbsp; </span>
				<span id="resultCom1">B&nbsp;<INPUT TYPE="checkbox" id="result1" onclick="choise(this)"  name="result" value="1">&nbsp;&nbsp; </span>
				<span id="resultCom2">C&nbsp;<INPUT TYPE="checkbox" id="result2" onclick="choise(this)" name="result" value="2">&nbsp;&nbsp; </span>
				<span id="resultCom3">D&nbsp;<INPUT TYPE="checkbox" id="result3" onclick="choise(this)" name="result" value="3">&nbsp;&nbsp; </span>
				<span id="resultCom4"><br>E&nbsp;<INPUT TYPE="checkbox" id="result4" onclick="choise(this)" name="result" value="4">&nbsp;&nbsp; </span>
				<span id="resultCom5">F&nbsp;<INPUT TYPE="checkbox" id="result5" onclick="choise(this)"  name="result" value="5">&nbsp;&nbsp; </span>
				<span id="resultCom6">G&nbsp;<INPUT TYPE="checkbox" id="result6" onclick="choise(this)" name="result" value="6">&nbsp;&nbsp; </span>
				<span id="resultCom7">H&nbsp;<INPUT TYPE="checkbox" id="result7" onclick="choise(this)" name="result" value="7">&nbsp;&nbsp; </span><span id="resultSpan"></span>
            </td>
        </tr>
        <tr >
            <td class="detailTD11" title="点击切换" align="right">
                <table >
                    <tr>
                        <td id="fck0" style="cursor:hand;font:bold" onclick = "changeFck(this)">题目&nbsp;&nbsp;<span id="contentSpan"></span></td>
                    </tr>
                    <tr id="fcktr1">
                        <td id="fck1" style="cursor:hand" onclick = "changeFck(this)">答案A&nbsp;&nbsp;<span id="resultContent0Span"></span></td>
                    </tr>
                    <tr id="fcktr2">
                        <td id="fck2" style="cursor:hand" onclick = "changeFck(this)">答案B&nbsp;&nbsp;<span id="resultContent1Span"></span></td>
                    </tr>
                    <tr id="fcktr3">
                        <td id="fck3" style="cursor:hand" onclick = "changeFck(this)">答案C&nbsp;&nbsp;<span id="resultContent2Span"></span></td>
                    </tr>
                    <tr id="fcktr4">
                        <td id="fck4" style="cursor:hand" onclick = "changeFck(this)">答案D&nbsp;&nbsp;<span id="resultContent3Span"></span></td>
                    </tr>
                    <tr id="fcktr5">
                        <td id="fck5" style="cursor:hand" onclick = "changeFck(this)">答案E&nbsp;&nbsp;<span id="resultContent4Span"></span></td>
                    </tr>
                    <tr id="fcktr6">
                        <td id="fck6" style="cursor:hand" onclick = "changeFck(this)">答案F&nbsp;&nbsp;<span id="resultContent5Span"></span></td>
                    </tr>
                    <tr id="fcktr7">
                        <td id="fck7" style="cursor:hand" onclick = "changeFck(this)">答案G&nbsp;&nbsp;<span id="resultContent6Span"></span></td>
                    </tr>
                    <tr id="fcktr8">
                        <td id="fck8" style="cursor:hand" onclick = "changeFck(this)">答案H&nbsp;&nbsp;<span id="resultContent7Span"></span></td>
                    </tr>
                    <tr>
                        <td id="fck9" style="cursor:hand" onclick = "changeFck(this)">解析&nbsp;&nbsp;<span id="resolutionSpan"></span></td>
                    </tr>
                </table>
            </td>
            <td class="detailTD12" colspan="5" id="fck0inst" style="display:">
					<%	
                        FCKeditor oFCKeditor ;
						oFCKeditor = new FCKeditor( request, "content" ) ;
						oFCKeditor.setBasePath( "/FCKeditor/" ) ;
						oFCKeditor.setValue(content);
						out.println( oFCKeditor.create() ) ;
					%>
            </td>
            <%
            // 选择题答案
            for(int i = 0; i < 8; i ++)            
            {
                %>
            <td class="detailTD12" colspan="5" id="fck<%= (i + 1)%>inst" style="display:none">
				<%
						oFCKeditor = new FCKeditor( request, "resultContent" + i) ;
						oFCKeditor.setBasePath( "/FCKeditor/" ) ;
						oFCKeditor.setValue(resultContents[i]);
						out.println( oFCKeditor.create() ) ;
				%>
            </td>
                <%                        
            }//for 
            %>                   
            <td class="detailTD12" colspan="5" id="fck9inst" style="display:none">
                <%
						oFCKeditor = new FCKeditor( request, "resolution" ) ;
						oFCKeditor.setBasePath( "/FCKeditor/" ) ;
						oFCKeditor.setValue(resolution);
						out.println( oFCKeditor.create() ) ;
				%>
            </td>
        </tr>
		<input type="hidden" name="subjectQuestTypeId" value="<%= request.getParameter("subjectQuestTypeId")%>">
		<input type="hidden" name="questTypeCode" value="<%= request.getParameter("questTypeCode")%>">